<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>选项的合并</title>
</head>
<body>
<div id="app">

</div>

<script type="module">
    import {createApp} from "../../../../js/vue.esm-browser.js";

    let mixin1 = {
        data() {
            return {
                message: "Hello, World!",

            }
        }
    }

    let mixin2 = {
        data() {
            return {
                info: "Hi, Vue!",
            }
        }
    }

    let app = createApp(
        {
            setup() {
                return {}
            },
            mixins:[mixin1, mixin2],

            created(){
                console.log(this.message);
                console.log(this.info);
            }
        }
    )

    app.mount("#app")
</script>
</body>
</html>